import {axios} from '@/utils/request'

export function fetchList(params) {
    return axios({
        url: '/test/page',
        method: 'GET',
        params: {
            ...params
        }
    })
}

export function delObj(id) {
    return axios({
        url: `/test/${id}`,
        method: 'DELETE'
    })
}

export function getObj(id) {
    return axios({
        url: `/test/${id}`,
        method: 'GET'
    })
}

export function addObj(params) {
    return axios({
        url: `/test`,
        method: 'POST',
        data: {
            ...params
        }
    })
}

export function putObj(params) {
    return axios({
        url: `/basMissionConfig`,
        method: 'PUT',
        data: {
            ...params
        }
    })
}


